package cn.edu.scau.cmi.chenmiaopeng.factory.commonFactory;

public class MeatFactory {
  public MeatProduction getMeatProduction(String option) {
	  MeatProduction meat = null;
	  if(option.equals("Pork")) {
		  PorkFactory  factory_pork = new PorkFactory();
		  meat = factory_pork.getPorkProduction();
	  }
	  else if(option.equals("Chicken")) {
		  ChickenFactory  factory_chicken = new ChickenFactory();
		  meat = factory_chicken.getChickenProduction();
	  }
	  else {
		  BeefFactory  factory_beef = new BeefFactory();
		  meat = factory_beef.getBeefProduction();
	  }
	  return meat;
  }
}
